package com.gmall.item.feign;

import com.gmall.common.result.Result;
import com.gmall.item.feign.impl.ItemApiFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(value = "service-item",fallback = ItemApiFeignClientFallback.class)
public interface ItemApiFeignClient {
    @GetMapping("/api/item/{skuId}")
    public Result<Map<String,Object>> getItem(@PathVariable Long skuId);
}
